package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dto.ProductPageDTO;
import com.sc.nft.entity.MallProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.SaasTaskDetailsCollectionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * IP商城商品表(sc_mall_product)数据Mapper
 *
 * @author zxy
 * @since 2023-05-10 16:59:01
 * @description IP商城
*/
@Mapper
public interface MallProductMapper extends BaseMapper<MallProduct> {

    IPage<ProductPageDTO> getProductPage(@Param("page") Page page, @Param("categoryId") Long  categoryId, @Param("type") Integer type,
                                         @Param("approvalStatus") Integer approvalStatus, @Param("daoId")Long daoId, @Param("name")String name, @Param("supplierId") Long supplierId,@Param("supplierName")String supplierName);
    /**
     * 根据ids获取对应的藏品信息
     * @param ids
     * @return
     */
    List<SaasTaskDetailsCollectionVO> getMallProductSimplenessByIds(@Param("ids") List<Long> ids);
}
